import java.sql.Timestamp;

public class TicketRecord {
    private Timestamp ticketTime;
    private String paymentMethod;
    private boolean isSuccess;
    private double amount;
    private String startStation;
    private String endStation;

    public TicketRecord(String paymentMethod, boolean isSuccess, double amount, 
                       String startStation, String endStation) {
        this.paymentMethod = paymentMethod;
        this.isSuccess = isSuccess;
        this.amount = amount;
        this.startStation = startStation;
        this.endStation = endStation;
    }

    // Getters and Setters
    public Timestamp getTicketTime() { return ticketTime; }
    public String getPaymentMethod() { return paymentMethod; }
    public boolean isSuccess() { return isSuccess; }
    public double getAmount() { return amount; }
    public String getStartStation() { return startStation; }
    public String getEndStation() { return endStation; }
}